    //
//  EndGameViewController.m
//  Quiz
//
//  Created by AnhLH-Oriolus on 30/07/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "EndGameViewController.h"


@implementation EndGameViewController

 // The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
-(id)init{
	self = [super init];
	
	return self;
}



// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
	UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
	[v setBackgroundColor:[UIColor clearColor]];
	self.view = v;
	[v release];
	
	UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(110, 300, 100, 40)];
	[btn setBackgroundColor:[UIColor darkGrayColor]];
	[btn setTitle:@"Play quiz" forState:UIControlStateNormal];
	[btn addTarget:nil action:@selector(openPlayerController) forControlEvents:UIControlEventTouchUpInside];
	[self.view addSubview:btn];
	[btn release];
	
	UIButton *btn1 = [[UIButton alloc] initWithFrame:CGRectMake(110, 350, 100, 40)];
	[btn1 setBackgroundColor:[UIColor darkGrayColor]];
	[btn1 setTitle:@"Setting" forState:UIControlStateNormal];
	[btn1 addTarget:nil action:@selector(openSettingController) forControlEvents:UIControlEventTouchUpInside];
	[self.view addSubview:btn1];
	[btn1 release];
	
	UIButton *btn2 = [[UIButton alloc] initWithFrame:CGRectMake(110, 400, 100, 40)];
	[btn2 setBackgroundColor:[UIColor darkGrayColor]];
	[btn2 setTitle:@"Help" forState:UIControlStateNormal];
	[btn2 addTarget:nil action:@selector(openHelpView) forControlEvents:UIControlEventTouchUpInside];
	[self.view addSubview:btn2];
	[btn2 release];
}

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Overriden to allow any orientation.
    return YES;
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}


- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
